package com.kuaigou.cim.util;

import java.util.HashMap;
import java.util.Map;

import com.appleframework.config.core.PropertyConfigurer;

public class IpMapUtil {
	
	public static String getIpMap(String ip){		
		String ipmaps = PropertyConfigurer.getString("ip.map");
		Map<String,String> map = new HashMap<String, String>();
		String[] array = ipmaps.split(";");
		for(String ipmap : array){
			String[] iparray = ipmap.split(":");
			map.put(iparray[0], iparray[1]);			
		}
		return map.get(ip);		
	}

}
